package pl.smath.regex.tree.vertexes;

public abstract class LabelVertex extends Vertex {

	abstract public String getName();
	abstract public LabelVertex getNew(String s);
	
	private String label;
	
	public LabelVertex(String s) {
		label = s.toUpperCase();
	}
	
	public String serialize() {
		return getName() + "['" + label + "']";
	}
	
	public String getLabel() {
		return label;
	}
	
}